/**
*created by xuqiang 19/05/08
*/
//路由文件
import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes'


Vue.use(Router);


const router = new Router({
    routes
});

//路由拦截-前守卫
router.beforeEach((to, from, next) => {
    console.log('666 here is index.js');
    console.log('to:', to);
    console.log('from:', from);
    if(to.name==='portal-web'){
        // next({
        //     path:'/portal-web/home'
        // });
        next()
    }else{
        next()
    }

});
//路由拦截-后守卫
router.afterEach(() => {

});
export default router
